package com.company.www;

import java.sql.SQLOutput;

public class RegexDemo1 {
    public static void main(String[] args) {
        String str = "123456";
        String regex = "\\d+";
        System.out.println(str.matches(regex));
    }
}
